package com.malie.myspringboot.designPattern.proxyPattern;

public class RealImage implements Image {

    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        load(fileName);
    }

    private void load(String fileName) {
        System.out.println("加载文件---" + fileName);
    }

    @Override
    public void display() {
        System.out.println("展示文件----" + fileName);
    }
}
